package xin8;
class Animal {
    public void shout(){
        System.out.println("发出动物叫声");
    }
}
class Dog extends Animal{
        public void shout (){
        System.out.println("汪汪汪……");
    }
}
public class Example04 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.shout();
    }
}
